package tech.pdai.springframework.entity;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

@Slf4j
@Component
public class Menu {

    @PostConstruct
    public void init() {
        log.info("execute Menu init");
    }

    @PreDestroy
    public void destroy() {
        log.info("execute Menu destroy");
    }
}
